import http from "@/axios";
import { URI } from "@/axios/config";

// 刷新 token
export const refreshToken = (refreshToken: string) =>
  http({ url: `${URI.system}/`, method: "post", data: { refreshToken } });

// 获取路由数据
export const getRoutes = () => http({ url: `${URI.system}/`, method: "get" });

// 获取菜单数据
export const getMenus = () => http({ url: `${URI.system}/`, method: "get" });
